﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Infrastructure
{
    public class CommonException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CommonException"/> class.
        /// </summary>
        public CommonException()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CommonException"/> class.
        /// </summary>
        /// <param name="message">信息.</param>
        public CommonException(string message)
            : this(message, null)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CommonException"/> class.
        /// </summary>
        /// <param name="message">信息.</param>
        /// <param name="innerException">内嵌异常对象.</param>
        public CommonException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
